﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserClear.aspx.cs" Inherits="UserManagement_UserClear" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<link href="../css/Style.css" rel="stylesheet" type="text/css" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>清除在线用户</title>
    <link href="../Includes/index.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/MasterPage.css" type="text/css" rel="stylesheet" />
    <link href="../Includes/xtree.css" type="text/css" rel="stylesheet" />
    <link href="../css/MyCss.css" type="text/css" rel="stylesheet" />
    <link href="../css/Style.css" rel="stylesheet" type="text/css" />
</head>
<script src="../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="../Includes/jquery-1.4.1.js" type="text/javascript"></script>
<script src="../Includes/MyJScript.js" type="text/javascript"></script>
 <script type="text/javascript">
                function checkall(cb){
                var cbs=document.getElementsByTagName("input");
                for(var i=0;i<cbs.length;i++ )
                {
                 if(cbs[i].type=="checkbox")
                 {
                  cbs[i].checked=cb.checked;
                 }
                
                
                }
            }
            //关闭当前窗口
            function winCancel() {
                parent.PE_FrameTab.CloseCurrentTab();
            }

    </script>
    <body>
    <form id="userclearform" runat="server">
    <div class="inputbuttondiv">
        
        <asp:Button class="inputbutton" ID="userclear" runat="server" Text="清空" 
            onclick="userclear_Click" />
        <asp:Button class="inputbutton" ID="btnCancel" runat="server" Text="取消" 
             OnClientClick="winCancel()" />
    </div>
    <div>
    
        <asp:GridView ID="UserListGridView" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="userId" BackColor="White">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:CheckBox ID="selectAllCheckBox" runat="server" Text="全选"
                        onclick="checkall(this)" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="userSecCheckBox" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="userid" HeaderText="用户代码" />
                <asp:BoundField DataField="username" HeaderText="用户名称" />
                
                <asp:TemplateField HeaderText="部门代码">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Bind("deptno") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
               <asp:TemplateField HeaderText="部门名称">
                  <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" 
                            Text='<%# tool.getDeptName(Eval("deptno")) %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="是否可用">
                    
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# tool.getUserLgsignName(Eval("lgsign")) %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="当前状态">
                    
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# tool.getUserStatusName(Eval("status")) %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="createdate" HeaderText="创建时间" 
                    DataFormatString="{0:yyyy-M-dd}" />
                <asp:BoundField DataField="remarks" HeaderText="备注" />
            </Columns>
        </asp:GridView>
    
    </div>
    </form>
</body>
</html>
